﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Master_TrangChu
/// </summary>
public class Master_TrangChu
{
    DataConnection TTrangchu = new DataConnection();
	public Master_TrangChu()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public DataTable TTrangchu2()
    {
        string sql = "select Phim.MaPhim, TenPhim, TenTL, QuocGia, DienVien, SoTap, HinhAnh,GioiThieu, GiaThue "+
                        "from Phim,LoaiPhim,LoaiCD where Phim.MaTL=LoaiPhim.MaTL"+
                        " and Phim.MaLoai=LoaiCD.MaLoai";
        return TTrangchu.GetData(sql);
    }
    public DataTable TLoaiphim()
    { 
        string sql = "seclect TenTL from LoaiPhim where TenTL like b";
        return TTrangchu.GetData(sql);
    }
    public DataTable THSX()
    {
        string sql = "seclect QuocGia from Phim";
        return TTrangchu.GetData(sql);
    }
}
